﻿@using Facebook.Web.Mvc
@Html.CanvasActionLink("Invite", "Index", "Home")
&nbsp;
@Html.CanvasActionLink("Play", "Play", "Game")
<fb:serverfbml> 
<script type="text/fbml">
    <fb:fbml> 
    	<fb:request-form
    		action="http://localhost:2100/invite/sent"
    		method="POST"
    		invite="true"
    		type="Slot Machine"
    		content="Try out Slot Machine!
    			<fb:req-choice url='http://apps.facebook.com/casinomachine' /> 
                "> 
    		<fb:multi-friend-selector
    			showborder="false"
                width="70%"
                style="width:80%"
    			actiontext="Invite your friends to try Slot Machine."    			
    			rows="4"
    		/> 
    	</fb:request-form> 
    </fb:fbml>
</script> 
</fb:serverfbml>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"
    type="text/javascript"></script>
<script type="text/javascript">
    FB_RequireFeatures(
    	["CanvasUtil"],
    	function () {
    	    FB.XdComm.Server.init('/xd_receiver.htm');
    	    FB.CanvasClient.startTimerToSizeToContent();
    	}
    );
</script>
<script type="text/javascript">
    FB_RequireFeatures(["XFBML"], function () { FB.Facebook.init("54f1a13a0f27743718926cc2135d54fe", "/xd_receiver.htm"); });	
</script>
